import request from '@/utils/request'
import defaultSettings from '@/settings'

export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.authorityApp}/s/loginInfo/search`,
  exportUrl: `${defaultSettings.ctx.authorityApp}/s/loginInfo/search`,
  delUrl: `${defaultSettings.ctx.authorityApp}/s/loginInfo/remove`,
}

// 查询登录日志列表
export function listLoginLog(query) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/loginInfo/search`,
    method: 'get',
    params: query
  })
}

// 删除登录日志
export function delLoginLog(data) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/loginInfo/remove?ids=`+data,
    method: 'post',
  })
}
